Skip to content

fix: restore lifecycle preflight workspace layout - #235

Merged
Pigbibi merged 3 commits into
mainfrom
codex/lifecycle-workspace-artifact-20260711
Jul 10, 2026
Merged

fix: restore lifecycle preflight workspace layout#235
Pigbibi merged 3 commits into
mainfrom
codex/lifecycle-workspace-artifact-20260711

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Purpose

Download the preflight bundle at the workflow workspace root so it can restore both data/lifecycle_store and snapshot-pipeline external/.../data/output artifacts.

Validation

  • PYTHONPATH=src python3 -m pytest -q tests/test_reusable_drift_workflow.py
  • actionlint .github/workflows/reusable-drift-check.yml
  • git diff --check

Co-Authored-By: Codex <noreply@openai.com>
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

🤖 Codex PR Review

Merge allowed: No issues found


Review by Codex PR Review bot • PR

Pigbibi and others added 2 commits July 11, 2026 06:38
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 7f0367c into main Jul 10, 2026
3 checks passed
@Pigbibi
Pigbibi deleted the codex/lifecycle-workspace-artifact-20260711 branch July 10, 2026 22:51

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ec132aa3c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

exit 1
fi
snapshot_target="$snapshot_root/data/output"
rm -rf -- "$LIFECYCLE_LOCAL_ROOT" "$snapshot_target"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate lifecycle restore path before deleting

When the caller checkout contains a symlinked data directory or other parent of data/lifecycle_store, this rm -rf resolves through that symlink because only the snapshot checkout is realpath/symlink-validated above. In scheduled/workflow_dispatch runs for such a repo, the restore can delete and then overwrite files outside the workspace; please add the same destination validation for $LIFECYCLE_LOCAL_ROOT before removing or copying into it.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant